package wbhproject.tests;

import java.net.MalformedURLException;

import org.apache.log4j.Logger;

import wbhproject.model.ControllerUnit;
import wbhproject.model.MeasurePoint;

/**
 * Testclass for wbhproject.model.MeasurePointTest
 * 
 * @author Thomas Aulich
 * 
 */
public class MeasurePointTest {
	static Logger log = Logger.getLogger(MeasurePointTest.class);

	public static void main(String[] args) throws MalformedURLException {
		ControllerUnit controllerUnit = new ControllerUnit((long) 1,
				"192.168.1.222", "1", "Saia teststation TAU", true);
		MeasurePoint measurePoint = new MeasurePoint(4711, controllerUnit,
				"Test-Sollwert Adresse R1000", "1000", "no comment", "d", 1);
		log.debug("URL:" + measurePoint.getReadValUrl());
		log.debug("Value 123 means: " + String.valueOf(MeasurePoint.getDoubleValue(measurePoint, 123)));
	}
}
